<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.org/schema/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui" template="layout/template.xhtml"
    xmlns:pm="http://primefaces.org/mobile" contentType="text/html"
    renderKitId="PRIMEFACES_MOBILE">
  <ui:define name="body">
    <h:form>
      <pm:buttonGroup orientation="horizontal">
        <h:commandButton value="会议室追加" action="create" />
        <h:commandButton value="预约检索" action="bookingSearch" />
      </pm:buttonGroup>
      <p:spacer height="1" />
      <p:dataList paginator="true" rows="10" value="#{meetingRooms}" var="meetingRoom">
        <f:attribute name="swatch" value="e" />
        <f:attribute name="dividerSwatch" value="e" />
        <f:attribute name="paginatorText" value="更多.." />
        <!--
                <f:attribute name="columnToggle" value="true" />
                <f:attribute name="contentSwatch" value="a" />
                -->
        
        <f:facet name="header">会议室一览</f:facet>
        <f:attribute name="filter" value="true"  />
        <h:commandLink action="#{meetingRoomListAction.showDetail}"> #{meetingRoom.mrName} 类型：#{meetingRoom.mrType} </h:commandLink>
        <p:commandLink action="#{meetingRoomListAction.edit}">
          <f:attribute name="icon" value="edit" />
        </p:commandLink>
      </p:dataList>
      <p:spacer height="10" />
    </h:form>
  </ui:define>
</ui:composition>
